import { Global, Module } from '@nestjs/common'
import { MetaOpenApiModule } from './meta-open-api/meta-open-api.module'
import { MetaPlatformApiModule } from './meta-platform-api/meta-platform-api.module'
import { SystemModule } from './system/system.module'
import { WebsocketModule } from './websocket/websocket.module'
import { registerRouterModule } from '../common/router'

@Global()
@Module({
  imports: [...registerRouterModule([MetaOpenApiModule, MetaPlatformApiModule]), SystemModule, WebsocketModule],
  exports: [MetaOpenApiModule, MetaPlatformApiModule, SystemModule, WebsocketModule],
})
export class GatewayModule {}
